Skip to contentSkip to conversation

loopback_multi_paths_port_restart: core dumped occurred when exiting testpmd

DPDK/vhost/virtio Bug 1681 [email protected] 1 participant 1 message Mar 25, 2025

lore
Share & tools
lore

[email protected]

author Acked-by David Marchand
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=1681

Bug ID: 1681
Summary: [dpdk-25.03] loopback_multi_paths_port_restart: core
dumped occurred when exiting testpmd
Product: DPDK
Version: 25.03
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: vhost/virtio
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

Environment
===========
DPDK version: 5f37ee9c859f3ce08ca4364f1d8c0e70ec33ac83 version: 25.03.0-rc2
OS: Anolis OS 8.9/5.10.134-16.2.an8.x86_64
Compiler: gcc version 8.5.0 20210514
Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz
NIC hardware: N/A
NIC firmware: N/A

Test Setup
Steps to reproduce
==================
1. start testpmd with vhost-net x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-5 -n 4 --no-pci --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --nb-cores=1 --txd=1024 --rxd=1024

2. exit testpmd
note: Currently only reproduced on Anolis OS.
testpmd> quit

Results:
========
testpmd> quitStopping port 0...
Stopping ports...
DoneShutting down port 0...
Closing ports...
Port 0 is closed
DoneBye...
Segmentation fault (core dumped)

Expected Result:
================
Testpmd exits normally without core dumped.

bad commit:
===========
commit 0e38b42bf61c03b9350f3c96fa421c2c28e815cc

Author: David Marchand <[email protected]>
Date:   Tue Jun 11 15:39:57 2024 +0200

vhost: manage FD with epoll

Switch to epoll so that the concern over the poll() fd array is removed.
Add a simple list of used entries and track the next free entry.

epoll() is thread safe, we no more need a synchronization mechanism and so can remove the notification pipe.

 lib/vhost/fd_man.c | 439 +++++++++++++++++------------------------------------
 lib/vhost/fd_man.h |   5 +-
 2 files changed, 144 insertions, 300 deletions
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.